//////////////////////////////////////////////////////////////////
//
// Port.cs
//
// Copyright (c) 2012 Dan Pike. All rights reserved
//
// Refer to license.txt for any license restrictions.
// 
using Utilities;
using System.Configuration;

namespace Entities.Archive
{
   public class Port : Utilities.ArchiveElement
   {
      public Port()
      {
         Properties.Add(name_);
      }

      ////////////////////////////////////////////////////////////////////////
      //
      [ConfigurationProperty("name")]
      public string name
      {
         get { return Global.normalizeName((string)base[name_], Global.NormalizeType.City); }
         set { base[name_] = Global.normalizeName(value, Global.NormalizeType.City); }
      }

      ////////////////////////////////////////////////////////////////////////
      //
      private ConfigurationProperty name_ = new ConfigurationProperty("name", typeof(string), string.Empty);
   }
}
